module.exports = app => {
  const { router, controller } = app;

  //登录
  router.post('/api/login', controller.login.login)

  //注册
  router.post('/api/register', controller.login.register)

  //往数据库添加数据
  router.get('/api/mock', controller.home.mock)

  //获取房源数据
  router.post('/api/housing', controller.home.housing)

  //房源删除
  router.post('/api/housingdel', controller.home.housingDel)

  //房源编辑
  router.post('/api/housingedit', controller.home.housingEdit)

  //房源添加
  router.post('/api/housingadd', controller.home.housingAdd)

  //获取直播数据
  router.post('/api/live', controller.home.live)

  //获取团购数据
  router.post('/api/group', controller.home.group)
  //三级联动
  router.post('/api/cele', controller.home.cele)
};
